﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FennecUI
{
    /// <summary>
    /// The WebApplet is used to display a basic web based apps
    /// a separate fully featured integrated web browser will be build using a NativeApplet
    /// </summary>
    public partial class WebApplet : Applet
    {
        public WebApplet(AppletConfiguration appletConfig)
            : base(appletConfig)
        {
            browser.Dock = DockStyle.Fill;
            AppletContent.Controls.Add(browser);
        }

        WebBrowser browser = new WebBrowser();

        public override void StartApplet()
        {
            browser.Navigate(Configuration.FilePath);
        }

        protected override void OnClose(Applet sender, EventArgs e)
        {
            return;
        }

        protected override void onEnterFullMode()
        {
            return;
        }
        protected override void onLeaveFullMode()
        {
            return;
        }
    }
}
